package com.kukudb.asaproject.aimodel.chatServer;

import com.kukudb.asaproject.aimodel.config.AiConfig;
import dev.langchain4j.community.model.dashscope.QwenChatModel;
import dev.langchain4j.data.message.AiMessage;
import dev.langchain4j.data.message.UserMessage;
import dev.langchain4j.memory.ChatMemory;
import dev.langchain4j.memory.chat.MessageWindowChatMemory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

import static dev.langchain4j.data.message.SystemMessage.systemMessage;

@Service
public class ChatServerUitl implements ChatServerInterface {

    @Autowired
    AiConfig.Assistant aiConfig;

    @Override
    public String getChatMessage(String message) {
        return aiConfig.chat(message);
    }


}
